﻿<phone:PhoneApplicationPage 
    x:Class="HelloWorld.Startup.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:views="clr-namespace:HelloWorld.Startup.Views"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
 
        <!--Panorama control-->
        <controls:Panorama Title="LocalizationLibrary">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="PanoramaBackground.png"/>
            </controls:Panorama.Background>
            <controls:PanoramaItem>
                <views:LanguagesView/>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="LM Dynamic">
                <views:LMDynamicLocalizationView/>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="LM Static">
                <views:LMStaticLocalizationView/>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="VM Dynamic">
                <views:VMDynamicLocalizationView/>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="VM Static">
                <views:VMStaticLocalizationView/>
            </controls:PanoramaItem>
        </controls:Panorama>
        <Grid Grid.Row="0" Grid.RowSpan="2" Name="waitingPanel">
            <Grid.Background>
                <SolidColorBrush Color="White" Opacity="0.6"/>
            </Grid.Background>
            <Border VerticalAlignment="Center" HorizontalAlignment="Center"
                    Width="200" Height="50" Background="White">
                <TextBlock Text="Localization Library is localizing!" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </Border>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>